rockchip: gpio: remove dead code
authorHeinrich Schuchardt <[email protected]>
Tue, 30 Jan 2018 23:45:51 +0000 (00:45 +0100)
committerPhilipp Tomsich <[email protected]>
Tue, 13 Feb 2018 11:52:47 +0000 (12:52 +0100)
commit6e5308c4b821be718a2b5ed5a233e17bb6e97949
tree46585e2607a557e4fbd81edb48538aacafc24bbd
parentebdb098c67c8fa1e9eb3d4e2f6a6a380fc222188
rockchip: gpio: remove dead code

In the following statements
if (a) return a; if (a) return c;
the second return can never be executed.

Identified by cppcheck.

Signed-off-by: Heinrich Schuchardt <[email protected]>
Acked-by: Philipp Tomsich <[email protected]>
Reviewed-by: Philipp Tomsich <[email protected]>
drivers/gpio/rk_gpio.c